﻿@model GitCandy.Models.ChangePasswordModel

@{
    ViewBag.Title = String.Format(SR.Shared_TitleFormat, SR.Account_ChangePasswordTitle);
}

<h3>@SR.Account_ChangePasswordTitle</h3>

@using (Html.BeginForm("Change", "Account", FormMethod.Post))
{
    <dl class="dl-horizontal">
        <dt>@Html.DisplayNameFor(s => s.OldPassword)</dt>
        <dd>@Html.PasswordFor(s => s.OldPassword, new { @class = "form-control" })</dd>
        <dd>
            <span class="text-danger">
                @Html.ValidationMessageFor(s => s.OldPassword)
            </span>
        </dd>

        <dt>@Html.DisplayNameFor(s => s.NewPassword)</dt>
        <dd>@Html.PasswordFor(s => s.NewPassword, new { @class = "form-control" })</dd>
        <dd>
            <span class="text-danger">
                @Html.ValidationMessageFor(s => s.NewPassword)
            </span>
        </dd>

        <dt>@Html.DisplayNameFor(s => s.ConformPassword)</dt>
        <dd>@Html.PasswordFor(s => s.ConformPassword, new { @class = "form-control" })</dd>
        <dd>
            <span class="text-danger">
                @Html.ValidationMessageFor(s => s.ConformPassword)
            </span>
        </dd>

        <dt></dt>
        <dd>
            <button type="submit" class="btn btn-primary">@SR.Account_ChangePassword</button>
        </dd>
    </dl>
}
